export const goodsIsShelves = (goods) => {
    let isRanzer = 0
    goods.forEach(item => {
        switch (item.status) {
            case window.vm.$t('takenofftheshelves'):
                isRanzer = 1
                break;
            case window.vm.$t('shelves'):
                isRanzer = 2
                break;
        }
    })

    return isRanzer
}

export const goodsIsPull = (goods) => {
    let isRanzer = 0
    goods.forEach(item => {
        switch (item.status) {
            case window.vm.$t('takenofftheshelves'):
                isRanzer = 1
                break;
            case window.vm.$t('waitingfortheshelves'):
                isRanzer = 2
                break;
        }
    })

    return isRanzer
}
